package com.demo.swagger.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * @ApiModel swagger 对返回实体类的注解
 */
@Data
@ApiModel("用户实体类")
//@Getter
//@Setter
public class User implements Serializable {
    @ApiModelProperty(name = "userName", value = "用户名")
    private String userName ;

    @ApiModelProperty(name = "password", value = "密码")
    private String password;

    @ApiModelProperty(name = "age", value = "年龄")
    private int age;
}
